package com.bauer.batch.writer;

import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.List;
import org.springframework.batch.item.ItemWriter;

/**
 * @description:
 * @author: weirui
 * @create: 2020-07-28 17:10
 **/
public class MysqlWriter implements ItemWriter<Object> {

    @Override
    public void write(List<?> list) throws Exception {
        System.out.println("write");
        System.out.println(JSON.toJSONString(list));
    }
}
